<template>
    <div style="width:100%">
        <h3>商品类型</h3>
        <el-table
            :data="sp"
            style="width: 80%;margin:0 auto">
            <el-table-column
                prop="type"
                label="商品类型"
                width="180">
            </el-table-column>
            <el-table-column
            fixed="right"
            label="操作"
            width="100">
            <template >
                <el-button @click="typeedit" type="text" size="small">编辑</el-button>
                <el-button @click="typedel" type="text" size="small">删除</el-button>
            </template>
            </el-table-column>
        </el-table>
    </div>
</template>
<script>
export default {
    data(){
        return{
            sp:[
                {"type":"包包"}
            ]
        }
    },
    methods:{
        typeedit(){
            this.$router.push("/typeedit")
        },
        typedel(){
            this.$router.push("/typedel")
        }
    }
}
</script>